import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['roles', 'points'])
  },
  methods: {
    // 检查按钮是否可以访问
    checkPermission(val) {
      return !this.roles.points.includes(val)
    }
  }
}
